# Contributor: Danilo Falcão <danilo@falcao.org>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=fabric
_pkgname=fabric
pkgver=3.2.2
pkgrel=0
pkgdesc="simple pythonic remote deployment tool"
options="!check" # Fails to find 'fabfile' module
url="https://www.fabfile.org/"
arch="noarch"
license="BSD-2-Clause"
depends="
	py3-decorator
	py3-deprecated
	py3-invoke
	py3-paramiko
	"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
checkdepends="py3-pytest py3-mock"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
1af5526d5af2e55eaf76b1a11eb359b32d86f31201584a2e8b14443ae42807a11c218c2edabafa3eb91993ca7d9d78f705717ee875563ac5ff4d8dbc8a42ee4e  fabric-3.2.2.tar.gz
"
